﻿<xmpp:UserControlBase
    x:Class="SBPweb.PROvibe.Modules.Client.Communication.Xmpp.Controls.MessengerMainPanel"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:controls="clr-namespace:SBPweb.PROvibe.Modules.Client.Communication.Xmpp.Controls"
    xmlns:xmpp="clr-namespace:SBPweb.Communication.Client.Controls.Xmpp;assembly=SBPweb.Communication.Client.Controls.Xmpp.SL"
    xmlns:xmppConnections="clr-namespace:SBPweb.Communication.Client.Controls.Xmpp.Connections;assembly=SBPweb.Communication.Client.Controls.Xmpp.SL"
    xmlns:xmppContacts="clr-namespace:SBPweb.Communication.Client.Controls.Xmpp.Contacts;assembly=SBPweb.Communication.Client.Controls.Xmpp.SL"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    mc:Ignorable="d"
    Width="300" Height="600"
    Canvas.Top="48"
    Canvas.Left="-300"
    HorizontalAlignment="Right"
    VerticalAlignment="Stretch"
    MouseEnter="MainPanel_MouseEnter" MouseLeave="MainPanel_MouseLeave">
    <Grid x:Name="gridMain" Margin="0">
        <Grid.Effect>
            <DropShadowEffect BlurRadius="5" ShadowDepth="3" Direction="-90" Color="#40000000" />
        </Grid.Effect>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="Auto" />
            <ColumnDefinition />
        </Grid.ColumnDefinitions>
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto" />
            <RowDefinition Height="Auto" />
            <RowDefinition />
        </Grid.RowDefinitions>
        <Rectangle Grid.RowSpan="3" Grid.ColumnSpan="2" Fill="#40FFFFFF" Margin="50,0,0,0">
            <Rectangle.Effect>
                <BlurEffect Radius="10" />
            </Rectangle.Effect>
        </Rectangle>
        <Rectangle Grid.Row="0" Grid.ColumnSpan="2" RadiusX="32" RadiusY="32" Fill="#80FFFFFF" Margin="8,8,-264,8" d:LayoutOverrides="GridBox" />
        <Rectangle Grid.Row="1" Grid.RowSpan="2" Grid.Column="1" Fill="#AAFFFFFF" />
        <Border Grid.Row="0" Grid.ColumnSpan="2" CornerRadius="32" BorderBrush="#FFFFFFFF" BorderThickness="2" Margin="0,0,-272,0" d:LayoutOverrides="GridBox" />
        <controls:MessengerKnob Grid.Column="0" Grid.Row="0" MouseLeftButtonUp="MessengerKnob_MouseLeftButtonUp" />
        <controls:MessengerToolBar x:Name="xmppToolBar" Grid.Column="1" Grid.Row="1" Height="42" HorizontalAlignment="Stretch" />
        <xmppConnections:ConnectionsView x:Name="xmppConnectionsView" Grid.Row="0" Grid.Column="1" IsEnabled="False" Margin="0,4" Height="48" ImageSourceBindingPathFormat="/Images/Contact_{0}_64x64.png"
                                         PresenceSelectionOpened="xmppConnectionsView_PresenceSelectionOpened" PresenceSelectionClosed="xmppConnectionsView_PresenceSelectionClosed"/>
        <xmppContacts:ContactsView x:Name="xmppContactsView" Grid.Row="2" Grid.Column="1" IsEnabled="False" ItemHeight="52" ItemSelectMode="Extended" IsContextMenuEnabled="False" ImageSourceBindingPathFormat="/Images/Contact_{0}_64x64.png"
                                   ItemSelectionChanged="xmppContactsView_ItemSelectionChanged"/>
    </Grid>
</xmpp:UserControlBase>